package com.book.book.dao;

import com.book.book.domain.BookDO;

import java.util.List;
import java.util.Map;

import com.book.iphone.domain.CateBook;
import org.apache.ibatis.annotations.Mapper;

/**
 * 用户读书表
 * @author siyuan
 * @email 894266364.com
 * @date 2018-01-27 10:53:23
 */
@Mapper
public interface BookDao {

	BookDO get(Integer ubId);

	List<BookDO> list(Map<String,Object> map);

	int count(Map<String,Object> map);

	int save(BookDO book);

	int update(BookDO book);

	int remove(Integer ub_id);

	int batchRemove(Integer[] ubIds);

    List<BookDO> getcateid(Integer cateid);

    List<CateBook> selectBookListWithCate();

	List<BookDO> listWithName(Map<String,Object> map);
}
